package com.tanhua.dubbo.api;

import com.tanhua.dubbo.mappers.SoulPaperMapper;
import com.tanhua.model.testpaper.SoulPaper;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@DubboService
public class SoulPaperApiImpl implements SoulPaperApi{
    @Autowired
    private SoulPaperMapper soulPaperMapper;

    /**
     * 查询所有试卷
     * @return
     */
    @Override
    public List<SoulPaper> findAll() {
        List<SoulPaper> soulPapers = soulPaperMapper.selectList(null);
        return soulPapers;
    }
}
